import { ContentType } from '@/enums/httpEnum';
import { request } from '@umijs/max';
import { downLoadXlsx } from '@/utils/downloadfile';

// 查询告警信息列表
export async function getTaskList(params?: API.Manage.TaskListParams) {
  return request<API.Manage.TaskPageResult>('/api/inspection/taskDetail/list', {
    method: 'GET',
    headers: { 'Content-Type': ContentType.FORM_URLENCODED },
    params
  });
}